package com.openvas.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.openvas.commons.common.annotation.Excel;
import com.openvas.commons.common.core.domain.BaseEntity;

/**
 * 端口对象 table_post_list
 * 
 * @author ruoyi
 * @date 2021-11-04
 */
public class TablePostList extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 端口列表的所有者 */
    @Excel(name = "端口列表的所有者")
    private String owner;

    /** 端口名称 */
    @Excel(name = "端口名称")
    private String name;

    /** 备注 */
    @Excel(name = "备注")
    private String comment;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modificationTime;

    /** 端口列表是否可写 */
    @Excel(name = "端口列表是否可写")
    private Integer writable;

    /** 是否有任何目标使用端口列表 */
    @Excel(name = "是否有任何目标使用端口列表")
    private Integer inUse;

    /** 端口总数 */
    @Excel(name = "端口总数")
    private Long portCount;

    /** TCP 端口总数 */
    @Excel(name = "TCP 端口总数")
    private Long tcpNum;

    /** UDP端口总数 */
    @Excel(name = "UDP端口总数")
    private Long udpNum;

    /** 范围的第一端口 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "范围的第一端口", width = 30, dateFormat = "yyyy-MM-dd")
    private Date portRangeStart;

    /** 最后一个端口的范围 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后一个端口的范围", width = 30, dateFormat = "yyyy-MM-dd")
    private Date portRangeEnd;

    /** 端口类型： Tcp， Udp */
    @Excel(name = "端口类型： Tcp， Udp")
    private String portRangeType;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOwner(String owner) 
    {
        this.owner = owner;
    }

    public String getOwner() 
    {
        return owner;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setComment(String comment) 
    {
        this.comment = comment;
    }

    public String getComment() 
    {
        return comment;
    }
    public void setCreationTime(Date creationTime) 
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime() 
    {
        return creationTime;
    }
    public void setModificationTime(Date modificationTime) 
    {
        this.modificationTime = modificationTime;
    }

    public Date getModificationTime() 
    {
        return modificationTime;
    }
    public void setWritable(Integer writable) 
    {
        this.writable = writable;
    }

    public Integer getWritable() 
    {
        return writable;
    }
    public void setInUse(Integer inUse) 
    {
        this.inUse = inUse;
    }

    public Integer getInUse() 
    {
        return inUse;
    }
    public void setPortCount(Long portCount) 
    {
        this.portCount = portCount;
    }

    public Long getPortCount() 
    {
        return portCount;
    }
    public void setTcpNum(Long tcpNum) 
    {
        this.tcpNum = tcpNum;
    }

    public Long getTcpNum() 
    {
        return tcpNum;
    }
    public void setUdpNum(Long udpNum) 
    {
        this.udpNum = udpNum;
    }

    public Long getUdpNum() 
    {
        return udpNum;
    }
    public void setPortRangeStart(Date portRangeStart) 
    {
        this.portRangeStart = portRangeStart;
    }

    public Date getPortRangeStart() 
    {
        return portRangeStart;
    }
    public void setPortRangeEnd(Date portRangeEnd) 
    {
        this.portRangeEnd = portRangeEnd;
    }

    public Date getPortRangeEnd() 
    {
        return portRangeEnd;
    }
    public void setPortRangeType(String portRangeType) 
    {
        this.portRangeType = portRangeType;
    }

    public String getPortRangeType() 
    {
        return portRangeType;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("owner", getOwner())
            .append("name", getName())
            .append("comment", getComment())
            .append("creationTime", getCreationTime())
            .append("modificationTime", getModificationTime())
            .append("writable", getWritable())
            .append("inUse", getInUse())
            .append("portCount", getPortCount())
            .append("tcpNum", getTcpNum())
            .append("udpNum", getUdpNum())
            .append("portRangeStart", getPortRangeStart())
            .append("portRangeEnd", getPortRangeEnd())
            .append("portRangeType", getPortRangeType())
            .append("userName", getUserName())
            .toString();
    }
}
